<template>
  <div class="dashboard-container">
    <span v-if="userInfo.nickName">{{ userInfo.nickName }}</span>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { UserModule } from "@/store/modules/user";
import Echarts from "@/components/charts";

@Component({
  name: "frontHome",
  components: {
    echarts: Echarts
  }
})
export default class extends Vue {
  get userInfo() {
    return UserModule.loginInfo;
  }
  mounted () {
    console.log("普通用户所有路由",this.$router)
  }
}
</script>

<style lang="less" scoped>

.dashboard {
  &-container {
    margin: 30px;
  }
}
</style>
